package ac.zlf.gradle.web_demo.servlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * <p>Project: bee-projects</p>
 * <p>Title: EduCourseNoteBean.java</p>
 * <p>Description:   </p>
 * <p>Copyright: Copyright (c) 2016 </p>
 * <p>Company: 华炜云商科技有限公司 www.hwtech.cc</p>
 *
 * @author zlf
 * @version 1.0
 * @date 2017/7/6 15:07
 */
@WebServlet(urlPatterns = "/demo")
public class DemoDervlet extends HttpServlet {

    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.out.println("=-=-=-=-=");
        PrintWriter pw = new PrintWriter(resp.getOutputStream());
        pw.print("ssdfasddsdsadsadsa");
//        super.service(req, resp);
        pw.flush();
        pw.close();
    }
}
